package me.mock.ingress;

import java.io.Closeable;

public class Util
{
	public static void sleep(long milliseconds)
	{
		try
		{
			Thread.sleep(milliseconds);
		}
		catch (InterruptedException e)
		{

		}
	}

	public static void close(Closeable o)
	{
		try
		{
			if (o != null)
				o.close();
		}
		catch (Exception e)
		{
		}
	}

	public static void join(Thread t)
	{
		do
		{
			try
			{
				t.join();
			}
			catch (Exception e)
			{
			}
		} while (t.isAlive());
	}
}
